#include "searcher.hpp"
#include <iostream>
#include <string>

const std::string file_path="data/raw_html/raw.txt";

int main()
{
    ns_searcher::Searcher * search=new ns_searcher::Searcher();
    search->InitSearcher(file_path);
    std::string query;
    std::string json_string;
    while(true)
    {
        std::cout<<"Please enter your search query# ";
        std::getline(std::cin,query);
        // std::cout<<query;
        search->Search_Set(query,&json_string);
        std::cout<<json_string; 
    
    }
    return 0;
}